Skip to content

feat: implement bal specific rpc methods#22406

Merged
mattsse merged 26 commits into
paradigmxyz:bal-devnet-3from
Soubhik-10:bal-rpc
Mar 11, 2026
Merged

feat: implement bal specific rpc methods#22406
mattsse merged 26 commits into
paradigmxyz:bal-devnet-3from
Soubhik-10:bal-rpc

Conversation

@Soubhik-10
Copy link
Copy Markdown
Contributor

No description provided.

mattsse and others added 5 commits February 20, 2026 11:38
Implements the debug_getBlockAccessList RPC endpoint as specified in EIP-7928.

This endpoint replays a block and generates the Block Access List (BAL),
which tracks all state changes (balance, nonce, code, storage) per transaction.

Implementation details:
- Uses revm's built-in BAL tracking via State::builder().with_bal_builder()
- Follows BAL index convention: 0 for pre-execution, 1..n for transactions,
  n+1 for post-execution
- Returns RLP-encoded BlockAccessList as Bytes
- Acquires trace permit for concurrency limiting

Closes paradigmxyz#20269

Co-authored-by: Ishika Choudhury <117741714+Rimeeeeee@users.noreply.github.com>
Co-authored-by: Soubhik Singha Mahapatra <160333583+Soubhik-10@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019be004-502f-7262-bcf5-738790ca31cc
Co-authored-by: Amp <amp@ampcode.com>
@github-project-automation github-project-automation Bot moved this to Backlog in Reth Tracker Feb 20, 2026
@Soubhik-10 Soubhik-10 changed the title Bal rpc feat: implement bal specific rpc methods Feb 20, 2026
Copy link
Copy Markdown
Member

@emmajam emmajam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty !!

Comment thread crates/ethereum/node/tests/e2e/debug.rs Outdated
Comment thread crates/rpc/rpc-eth-api/src/core.rs Outdated
Comment thread crates/rpc/rpc-api/src/debug.rs
Comment thread crates/rpc/rpc-eth-api/src/core.rs
Comment thread crates/rpc/rpc-eth-api/src/core.rs Outdated
Comment thread crates/rpc/rpc-eth-api/Cargo.toml
Copy link
Copy Markdown
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, smol suggestions

Comment thread crates/rpc/rpc-eth-api/src/helpers/block_access_list.rs Outdated
Comment thread crates/rpc/rpc-eth-api/src/helpers/block_access_list.rs Outdated
Comment thread crates/rpc/rpc-eth-api/src/helpers/trace.rs Outdated
@github-project-automation github-project-automation Bot moved this from Backlog to In Progress in Reth Tracker Mar 4, 2026
@Soubhik-10 Soubhik-10 marked this pull request as ready for review March 4, 2026 13:54
@Soubhik-10 Soubhik-10 requested a review from mattsse March 4, 2026 13:54
@Soubhik-10 Soubhik-10 changed the base branch from bal-devnet-2 to bal-devnet-3 March 4, 2026 14:25
@Rimeeeeee Rimeeeeee requested a review from DaniPopes as a code owner March 11, 2026 05:43
@mattsse mattsse merged commit 8d343ec into paradigmxyz:bal-devnet-3 Mar 11, 2026
98 of 103 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Reth Tracker Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants